package com.jmp.api.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Builder;
import lombok.Data;

import java.util.Date;
import java.util.List;

/**
 * @author cjr
 */
@Data
@Builder
public class OrdersInfoResponse {

    private Integer ordersId;
    private String ordersNo;
    private String tradeNo;
    private Integer orderPrice;
    @ApiModelProperty("订单状态（1待付款，2待发货，3待收货，4已完成，5交易取消，6退款成功）")
    private Integer orderState;
    private Date createTime;
    private Integer payType;
    private Date payTime;
    private Integer payPrice;
    private Integer deliveryType;
    private String remark;

    @ApiModelProperty("退款状态（1未申请，2退款申请中，3退款成功）")
    private Integer refundState;
    private String refundRemark;

    private Integer addressId;
    private String detailedAddress;
    private String receiveName;
    private String receivePhone;

    private Integer companyId;
    private String companyName;

    private Integer userId;
    private String logo;
    private String name;
    private String phone;
    private String personalWx;

    private List<Goods> ordersModelList;
    private Integer allNum;

    @Data
    @Builder
    public static class Goods {
        private Integer goodsId;
        private String goodsName;
        private String photoUrl;
        private String specAttribute;
        private String specName;
        private Integer num;
        private Integer price;
        private Integer allPrice;

        private Integer cardId;
    }
}
